package cn.iocoder.yudao.module.system.controller.admin.merchant.vo;

import cn.iocoder.yudao.framework.common.validation.Mobile;
import com.alibaba.excel.annotation.ExcelProperty;
import com.mzt.logapi.starter.annotation.DiffLogField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.Size;

@Data
public class MerchantSaveReqVO {
    @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("用户编号")
    private Long id;

    @Schema(description = "用户昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @Size(max = 30, message = "用户昵称长度不能超过30个字符")
    @DiffLogField(name = "用户昵称")
    private String nickname;

    @Schema(description = "店铺名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @Size(max = 30, message = "用户昵称长度不能超过30个字符")
    @DiffLogField(name = "用户昵称")
    private String merchantName;

    @Schema(description = "手机号码", example = "15601691300")
    @Mobile
    @DiffLogField(name = "手机号码")
    private String contactPhone;

    @Schema(description = "用户邮箱", example = "yudao@iocoder.cn")
    @Email(message = "邮箱格式不正确")
    @Size(max = 50, message = "邮箱长度不能超过 50 个字符")
    @DiffLogField(name = "用户邮箱")
    private String contactEmail;

    @Schema(description = "商家身份", example = "加工厂商")
    private Integer merchantIdentity;

    @Schema(description = "法人代表", example = "yudao@iocoder.cn")
    private String legalRepresentative;

    @Schema(description = "网站地址", example = "yudao@iocoder.cn")
    private String[] webUrl;

    @Schema(description = "经营地址", example = "yudao@iocoder.cn")
    private String contactAddress;

    @Schema(description = "商家介绍", example = "yudao@iocoder.cn")
    private String description;

}
